<?php

use yii\db\Migration;

class m000000_000004_create_api_version extends Migration
{
    public function safeUp()
    {
        $this->createTable('{{api_version}}', [
            'id' => $this->primaryKey(),
            'version' => $this->string(16)->notNull()->comment('接口版本号'),
            'update_info' => $this->text()->notNull()->comment('更新信息'),
            'is_support' => $this->integer()->notNull()->comment('当前是否支持'),
            'create_time' => $this->integer()->notNull()->comment('创建时间'),
        ]);
    }

    public function safeDown()
    {
        $this->dropTable('{{api_version}}');
    }
}
